package me.haoliang.repository

import java.util

/**
  * author: planck 
  * createTime: 2016/11/11.
  */
trait Repository[T] {
  def selectByKey(key: Object): T

  def save(t: T): Int

  def delete(key: Object): Int

  def updateAll(t: T): Int

  def updateNotNull(t: T): Int

  def selectBtExample(example: Object): util.List[T]


}
